﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace PSE.LogPackager.Common.Configuration
{
    public class LogSourceConfigurationCollection : ConfigurationElementCollection
    {
        protected override System.Configuration.ConfigurationElement CreateNewElement()
        {
            return new LogSourceConfigurationElement();
        }

        protected override object GetElementKey(System.Configuration.ConfigurationElement element)
        {
            return ((LogSourceConfigurationElement)element).Name;
        }

        public bool Contains(string name)
        {
            return this.Get(name) != null;
        }

        public LogSourceConfigurationElement Get(string name)
        {
            return this.BaseGet((object)name) as LogSourceConfigurationElement;
        }
    }
}
